import {
	getLocalFileList, getSpecificItemFromLocalList, getLatestItemFromLocalList, getLocalModule, getLocalNoticeList, getBasicInfoFromLocalData
} from '@/static/common/js/padLocalFileHandler.js'
// 请求列表的本地环境函数
export async function getListLocally() {
	const list = await getLocalFileList();
	return list
}

// 获取指定案卷详情
export async function getSpecificDetailLocally(archivesId) {
	const item = await getSpecificItemFromLocalList(archivesId);
	return item
}

// 获取最新案卷详情
export async function getLatestDetailLocally() {
	const item = await getLatestItemFromLocalList();
	return item
}

// 获取 模块列表
export async function getModulesListLocally(archivesId, archivesType) {
	const list = await getLocalModule(archivesId, archivesType);
	return list
}

// 获取 所有证据链列表
export async function getEvidenceChainListLocally(archivesId, archivesType) {
	const list = await getLocalNoticeList(archivesId, archivesType);
	return list
}

// getBasicInfoFromLocalData
export async function getBasicInfoLocally() {
	const data = await getBasicInfoFromLocalData()
	return data
}